package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

@Component
@DisconfFile(targetDirPath = "disconf", filename = "tcredit.properties")
public class TcreditProperties {
    private String appId = "e13b9f07-ce05-4097-9df9-80dc025fff49";
    private String tokenId = "37eb85fd-c4f2-40d2-85b5-3e0b0c7fcb09";
    private String getOrderIdUrl = "http://api.tcredit.com/service/driver/maintenance/getOrderId";
    private String getReportUrl = "http://api.tcredit.com/service/driver/maintenance/getReport";
    private String vehicleInsuranceRecUrl = "http://api.tcredit.com/driver/vehicleInsuranceRec";
    private String getDhbReportUrl = "http://zx.tcredit.com/mobile/carrier/report";
    private String getCreditScoreUrl = "http://api.tcredit.com/assessment/getCreditScore";
    private String getInfernalProbeUrl = "http://api.tcredit.com/assessment/infernalProbe";
    private int orderIdCacheDays = 1;
    /**
     * 天创小信分与无间探针的账户
     */
    private String appId2 = "dabd5f57a7764be5a7f803b433999de9";
    private String tokenId2 = "972d430d97ea45d2bfce1ecc71d9be1a";


    @DisconfFileItem(name = "tcredit.appId", associateField = "appId")
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    @DisconfFileItem(name = "tcredit.tokenId", associateField = "tokenId")
    public String getTokenId() {
        return tokenId;
    }

    public void setTokenId(String tokenId) {
        this.tokenId = tokenId;
    }

    @DisconfFileItem(name = "tcredit.getOrderIdUrl", associateField = "getOrderIdUrl")
    public String getGetOrderIdUrl() {
        return getOrderIdUrl;
    }

    public void setGetOrderIdUrl(String getOrderIdUrl) {
        this.getOrderIdUrl = getOrderIdUrl;
    }

    @DisconfFileItem(name = "tcredit.getReportUrl", associateField = "getReportUrl")
    public String getGetReportUrl() {
        return getReportUrl;
    }

    public void setGetReportUrl(String getReportUrl) {
        this.getReportUrl = getReportUrl;
    }

    @DisconfFileItem(name = "tcredit.orderIdCacheDays", associateField = "orderIdCacheDays")
    public int getOrderIdCacheDays() {
        return orderIdCacheDays;
    }

    public void setOrderIdCacheDays(int orderIdCacheDays) {
        this.orderIdCacheDays = orderIdCacheDays;
    }

    public String getVehicleInsuranceRecUrl() {
        return vehicleInsuranceRecUrl;
    }

    public void setVehicleInsuranceRecUrl(String vehicleInsuranceRecUrl) {
        this.vehicleInsuranceRecUrl = vehicleInsuranceRecUrl;
    }

    @DisconfFileItem(name = "tcredit.getDhbReportUrl", associateField = "getDhbReportUrl")
    public String getGetDhbReportUrl() {
        return getDhbReportUrl;
    }

    public void setGetDhbReportUrl(String getDhbReportUrl) {
        this.getDhbReportUrl = getDhbReportUrl;
    }

    @DisconfFileItem(name = "tcredit.getCreditScoreUrl", associateField = "getCreditScoreUrl")
    public String getGetCreditScoreUrl() {
        return getCreditScoreUrl;
    }

    public void setGetCreditScoreUrl(String getCreditScoreUrl) {
        this.getCreditScoreUrl = getCreditScoreUrl;
    }

    @DisconfFileItem(name = "tcredit.getInfernalProbeUrl", associateField = "getInfernalProbeUrl")
    public String getGetInfernalProbeUrl() {
        return getInfernalProbeUrl;
    }

    public void setGetInfernalProbeUrl(String getInfernalProbeUrl) {
        this.getInfernalProbeUrl = getInfernalProbeUrl;
    }

    public String getAppId2() {
        return appId2;
    }

    public void setAppId2(String appId2) {
        this.appId2 = appId2;
    }

    public String getTokenId2() {
        return tokenId2;
    }

    public void setTokenId2(String tokenId2) {
        this.tokenId2 = tokenId2;
    }
}
